package shoppingmall.manage.service;

import shoppingmall.manage.pojo.CommodityCategory;
import shoppingmall.manage.dto.PageBean;

import java.util.List;

public interface CommodityCategoryService {
    /**
     * 分页查询商品分类
     */
    public PageBean getCommodityCategoryList(int page, int pageSize);

    /**
     * 查询所有的商品分类
     */
    public PageBean getAllCommodityCategoryList ();

    /**
     * 添加一条商品分类
     */
    public boolean saveCommodityCategory (String categoryName);

    /**
     * 修改一条商品分类
     */
    public boolean updateCommodityCategory (CommodityCategory commodityCategory);

    /**
     * 删除一条商品分类
     */
    public boolean deleteCommodityCategory (int categoryId);

    /**
     * 批量删除商品分类
     */
    public boolean deleteCommodityCategoryBatch (List<Integer> categoryIds);
}
